package com.gthncz.proxy;

/**
 * 代理
 */
public class Cinema implements Movie {
    private Movie movie;

    public Cinema(Movie movie){
        this.movie = movie;
    }

    @Override
    public void play() {
        System.out.println("开始前广告...");
        movie.play();
        System.out.println("结束后广告...");
    }
}
